package com.fp.m7;

import com.fp.m7.model.Account;

public class TestUtils {

	// Account fields:
	public static final String username = "__UserName";
	public static final String password = "__PassWord";
	public static final String description = "__Description";
	public static final String status = "__Status";
	public static final String nickname = "__NickName";
	public static final String avatarUrl = "__AvatarUrl";

	// Comment fields:
	public static final String content = "__Content";

	public static Account createTestAccount() {
		Account account = new Account();
		account.setUsername(username);
		account.setPassword(password);
		account.setDescription(description);
		account.setStatus(status);
		account.setNickname(nickname);
		account.setAvatarUrl(avatarUrl);

		return account;
	}

	public static Account createOtherTestAccount() {
		Account account = new Account();
		account.setUsername(username.toUpperCase());
		account.setPassword(password.toUpperCase());
		account.setDescription(description.toUpperCase());
		account.setStatus(status.toUpperCase());
		account.setNickname(nickname.toUpperCase());
		account.setAvatarUrl(avatarUrl.toUpperCase());

		return account;
	}

	public static Account createYetAnotherTestAccount() {
		Account account = new Account();
		account.setUsername(username.toLowerCase());
		account.setPassword(password.toLowerCase());
		account.setDescription(description.toLowerCase());
		account.setStatus(status.toLowerCase());
		account.setNickname(nickname.toLowerCase());
		account.setAvatarUrl(avatarUrl.toLowerCase());

		return account;
	}
}
